package com.aspose.cells;

class zaxx extends zaxv {
   public zaxx(zahn var1, int var2) {
      super(var1, var2);
   }

   public zahn b(zaay var1) {
      return new zaxx(this.k.b(var1), this.a);
   }

   public boolean b(int var1, int var2) {
      if (var1 < this.b) {
         if (this.k.b(var1, var2)) {
            this.g = true;
            this.i = this.k.i();
            this.j = this.k.j();
         } else {
            this.g = false;
            this.i = this.b;
            this.j = 0;
         }
      } else {
         this.i = var1;
         this.j = var2;
         this.g = false;
      }

      return true;
   }

   public boolean g() {
      if (this.g) {
         if (this.k.g()) {
            this.i = this.k.i();
            this.j = this.k.j();
         } else {
            this.g = false;
            this.i = this.b;
            this.j = 0;
         }
      } else {
         ++this.j;
         if (this.j >= this.c) {
            ++this.i;
            if (this.i >= this.a) {
               return false;
            }

            this.j = 0;
         }
      }

      return true;
   }

   public zagu h() {
      return (zagu)(this.g ? this.k.h() : zzb.a);
   }

   public zagu o() {
      return this.k.o();
   }

   public zagu p() {
      return this.k.p();
   }

   public boolean q() {
      return this.k.q();
   }

   public int r() {
      int var1 = this.k.r();
      return var1 < 0 ? this.b : var1;
   }

   public int s() {
      return this.a - 1;
   }

   public int t() {
      return 0;
   }

   public int u() {
      return this.c - 1;
   }

   public int v() {
      int var1 = this.k.v();
      return var1 < 0 ? this.b * this.c : var1;
   }

   public int w() {
      return this.a * this.c - 1;
   }
}
